package com.xhq.netty;

import com.xhq.netty.io.NoBlockIO;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.apache.commons.lang3.StringUtils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PipedReader;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.LinkedList;
import java.util.concurrent.TimeUnit;

//@SpringBootApplication
public class NettyApplication {

    public static void main(String[] args) throws Exception {
        //SpringApplication.run(NettyApplication.class, args);

        //BlockIO.BIO();
        //BlockIO.BIOOneThreadPerConnect();

        NoBlockIO.NIO();
    }



}
